const express = require('express');
const router = express.Router();
router.use((req, res, next) => {
    console.log('time', Date.now());
    next();
});
router.get('/', (req, res) => {
    console.log('redirect');
    res.redirect('/index')
});
router.get('/index', (req, res) => {
    res.send('index page')
});
module.exports = router;